package com.kajespero.domain.commons.impl;

import java.util.Collection;

import com.kajespero.dao.commons.ReadDAO;
import com.kajespero.domain.commons.ReadDomain;
import com.kajespero.vo.IdentifierVO;

public abstract class AbstractReadDomain<D extends ReadDAO<T, I>, T extends IdentifierVO<I>, I extends Comparable<I>> extends AbstractDomain<D, T> implements ReadDomain<D, T, I>{

	@Override
	public T find(I identifier) {
		return getDAO().find(identifier);
	}

	@Override
	public Collection<T> findAll() {
		return getDAO().findAll();
	}
}
